package com.zxj.schoolxianyu.service;

import com.zxj.schoolxianyu.dao.followDao;
import com.zxj.schoolxianyu.entity.follow;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class followService {
    @Autowired(required = false)
    private followDao followDao;

    public String follow(String fromusername, String tousername) {
        follow f = new follow();
        f.fromusername = fromusername;
        f.tousername = tousername;
        followDao.insert(f);
        return "success";
    }
}
